package cn.ligoo.dtu.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ligoo.dtu.dao.BmuSlaveBalanceCurrentDao;
import cn.ligoo.dtu.domain.BmuSlaveBalanceCurrent;
import cn.ligoo.dtu.service.BmuSlaveBalanceCurrentService;

/**
 * @author Jin,QingHua
 * @version 2012-07-24 12:18:52
 */
@Service
public class BmuSlaveBalanceCurrentServiceImpl implements BmuSlaveBalanceCurrentService {

	@Resource
	private BmuSlaveBalanceCurrentDao bmuSlaveBalanceCurrentDao;

	@Override
	public Integer createBmuSlaveBalanceCurrent(BmuSlaveBalanceCurrent t) {
		this.bmuSlaveBalanceCurrentDao.insertEntity(t);
		return t.getId();
	}

	@Override
	public int modifyBmuSlaveBalanceCurrent(BmuSlaveBalanceCurrent t) {
		return this.bmuSlaveBalanceCurrentDao.updateEntity(t);
	}

	@Override
	public int removeBmuSlaveBalanceCurrent(BmuSlaveBalanceCurrent t) {
		return this.bmuSlaveBalanceCurrentDao.deleteEntity(t);
	}

	@Override
	public BmuSlaveBalanceCurrent getBmuSlaveBalanceCurrent(BmuSlaveBalanceCurrent t) {
		return this.bmuSlaveBalanceCurrentDao.selectEntity(t);
	}

	@Override
	public Integer getBmuSlaveBalanceCurrentCount(BmuSlaveBalanceCurrent t) {
		return this.bmuSlaveBalanceCurrentDao.selectEntityCount(t);
	}

	@Override
	public List<BmuSlaveBalanceCurrent> getBmuSlaveBalanceCurrentList(BmuSlaveBalanceCurrent t) {
		return this.bmuSlaveBalanceCurrentDao.selectEntityList(t);
	}

}
